<%@ page import="com.example.oa.Employee" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 23333
  Date: 2023/3/11
  Time: 19:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>员工首页</title>
</head>
<c:if test="${sessionScope.roleId ne 0}">
    <c:set var="message" scope="request" value="无权限，请重新登陆" />
    <jsp:forward page="index.jsp"></jsp:forward>
</c:if>
<body>

<h1>员工页面</h1>
ID：${sessionScope.employee.id}
<br>
姓名：${sessionScope.employee.name}
<br>
年龄：${sessionScope.employee.age}
<br>
性别：${sessionScope.employee.gender}
<br>
<a href="${pageContext.request.contextPath}/OA?action=sign_out">退出登陆</a>
</body>
</html>
